package com.furongji.common.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.fasterxml.jackson.annotation.JsonValue;
import lombok.Getter;

public enum CommentTargetTypeEnum {

    COURSE("COURSE", "课程"),

    ARTICLE("ARTICLE", "文章");

    @EnumValue
    @Getter
    private final String code;

    private final String description;

    CommentTargetTypeEnum(String code, String description) {
        this.code = code;
        this.description = description;
    }

    @JsonValue
    public String getCode() {
        return code;
    }
}
